<?php
require ('AbstractPublishableItem.php');


class AbstractPublishableItemTest extends AbstractPublishableItem {
	public function __construct ($date,$author)
	{
		$this->date=$date;
		$this->author=$author;
		
	}
	public function getPublishableDate()
	{
		if(is_numeric($this->date)){
			echo("c'est un integer\n");
	}else{
			echo("c'est pas un integer\n");
              }	
	}	
	public function getAuthorBillet()
	{
		if(is_numeric($this->author)){
			echo("ce n'est pas un string");
	}else{
			echo("c'est un string");
		}
	}


}

$abstrac=new AbstractPublishableItemTest (254662,"max");

echo $abstrac->getDate();
echo "\n";
echo $abstrac->getPublishableDate();
echo "\n";
echo $abstrac->getAuthor();
echo "\n";
echo $abstrac->getAuthorBillet();
echo "\n";
?>
